package com.auxgroup.smarthome.inner.entity;

/**
 * Created by niuGuangzhe on 2017/8/16.
 */
public class PackDeviceSnModelMappingEntity {
    private Integer weight;
    private DeviceSnModelMappingEntity entity;

    public PackDeviceSnModelMappingEntity(Integer weight, DeviceSnModelMappingEntity entity) {
        this.weight = weight;
        this.entity = entity;
    }

    public PackDeviceSnModelMappingEntity() {
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public DeviceSnModelMappingEntity getEntity() {
        return entity;
    }

    public void setEntity(DeviceSnModelMappingEntity entity) {
        this.entity = entity;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"weight\":")
                .append(weight);
        sb.append(",\"entity\":")
                .append(entity);
        sb.append('}');
        return sb.toString();
    }
}
